<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>vue.js</title>
	<script type="text/javascript" src="../js/vue.js"></script>
	<style type="text/css">
		.text-danger {
			width: 100px;
			height: 100px;
			background: red;
		}
		.active {
			width: 100px;
			height: 100px;
			background: green;
		}
	</style>
</head>
<body>
	<div id="app">
		<div v-bind:class="[errorClass, isActive ? activeClass : '']"></div>
	</div>
	<script type="text/javascript">
		var vm = new Vue({
			el: '#app',
			data: {
				isActive: true,
				activeClass: 'active',
				errorClass: 'text-danger'
			}
		})
	</script>
</body>
</html>
